<template>
  <div>
    <nav-header :headerTitle="'关于我们'" :navBgColor="'#fff'"></nav-header>
    <div class="nav-height"></div>
    <div class="about-us">
      <div class="logo-box">
        <img class="logo-box-img" :src="appLogo" alt="">
        <p class="logo-box-vision">BWRM商户版{{appVision}}版本</p>
      </div>
      <div class="list">
        <div class="item" v-for="item in aboutUsList" :key="item" @click="goUrl(item.url)">
          <img class="item-icon" :src="item.imgUrl" alt />
          <div class="item-middle">
            <p class="item-middle-name">{{item.title}}</p>
            <p class="item-middle-tips">{{item.tips}}</p>
          </div>
          <img class="item-righticon" src="@/assets/images/shop_enter.png" alt />
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import Vue from "vue";
import navHeader from "@/components/NavHeader";
import productInsIcon from "@/assets/images/about_goods.png";
import paltInsIcon from "@/assets/images/about_quali.png";
import servicesInsIcon from "@/assets/images/about_services.png";
import askAnsInsIcon from "@/assets/images/about_answer.png";
import { Button } from "vant";
Vue.use(Button);
import mixin from "@/utils/mixin";
const aboutUsList = [
  {
    imgUrl: productInsIcon,
    title: "产品介绍",
    tips: "产品介绍口碑检验",
    url: "introductionI"
  },
  {
    imgUrl: paltInsIcon,
    title: "平台资质",
    tips: "资质齐全平台正规",
    url: "platformI"
  },
  {
    imgUrl: servicesInsIcon,
    title: "服务保障",
    tips: "领先的服务与保障",
    url: "serviceI"
  } 
];
export default {
  name: "aboutUs",
  mixins: [mixin],
  components: {
    navHeader
  },
  data() {
    return {
      appLogo:"",
      appVision:"",
      aboutUsList
    };
  },
  mounted() { 
    this.$setgoindex() ;
    this.initAboutUs();
  },
  methods: {
    // 获取app信息
    initAboutUs(){
      this.$http.post("soft/getWapConfig",{}).then(res=>{ 
        let wapConfig = res.data ;  
        this.appLogo = wapConfig.wapLogoUrl;
        this.appVision = wapConfig.wapVersion;
      })
      
    }
  }
};
</script>

<style scoped lang="scss">
.about-us {
  .logo-box {
    font-size: 32px;
    font-family: PingFangSC-Regular;
    font-weight: 400;
    color: rgba(48, 49, 51, 1);
    text-align: center;
    margin: 84px auto;
    .logo-box-img {
      width: 188px;
      height: 188px;
      border-radius:35px;
    }
    .logo-box-vision {
      letter-spacing: 3px;
      margin-top: 32px;
    }
  }
  .list {
    // border-top: 1px solid rgba(237, 237, 237, 1);
    .item {
      width: 686px;
      height: 96px;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 34px 0;
      margin: auto;
      border-bottom: 1px solid rgba(237, 237, 237, 0.5);
      position: relative;
      &:first-child{
        border-top: 1px solid rgba(237, 237, 237, 0.5);
      }
      .item-icon {
        flex-basis: 72px;
        width: 72px;
      }
      .item-middle {
        flex: 1;
        height: 100%;
        position: relative; 
        .item-middle-name {
          font-size: 34px;
          font-family: PingFangSC-Regular;
          font-weight: 400;
          color: rgba(48, 49, 51, 1);
          letter-spacing: 2px; 
          position: absolute;
          top:0;
          left: 32px; 
        }
        .item-middle-tips {
          font-size: 28px;
          font-family: PingFangSC-Regular;
          font-weight: 400;
          color: rgba(129, 129, 129, 1); 
          letter-spacing: 1px; 
          position: absolute;
          bottom:0;
          left: 32px; 
        }
      }
      .item-righticon {
        flex-basis: 30px;
        width: 30px;
      }
    }
  }
}
</style>
